package com.jt.dao;

import com.jt.entity.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

@Mapper
public interface SubjectMapper {

    List<Subject> queryAll();

    Integer addsubject(Subject subject);

    Integer delete(@Param("id") Integer id, @Param("status") Integer status);

    Integer update(Subject subject);

    List<Subject> querybycourseid(Integer courseid);

    List<Subject> querybycontent(String content);

    Subject querybyid(Integer id);

    Integer count();

    List<Subject> query(RowBounds rowBounds);
//
}
